module.exports = {
  chainWebpack: config => {
    config.module.rule('js').exclude.add(/moonlite/)
  },
  devServer: {
    // Fuck the Lan IP
    disableHostCheck: true,
    port: 80,
    public: '127.0.0.1',
    proxy: {
      '^/api/': {
        target: 'http://127.0.0.1:8888/',
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  },
  configureWebpack: {
    optimization: {
      splitChunks: {
        chunks: 'all'
      }
    },
    devtool: 'source-map'
  }
}
